# -*- makefile -*-

datarootdir = @datarootdir@
CAMLC=@CAMLC@
CAMLOPT=@CAMLOPT@
CAMLRUN=@OCAMLRUN@
CAMLDEP=@OCAMLDEP@
OCAMLDOC=@OCAMLDOC@
CAMLMKTOP=@CAMLMKTOP@
CAMLMKLIB=@CAMLMKLIB@
CAMLP4O=@CAMLP4O@
OCAMLFIND=@OCAMLFIND@
FINDLIBDIR=@FINDLIBDIR@
OCAMLLDCONF=@OCAMLLDCONF@
CAMLBEST=@OCAMLBEST@
CAMLWIN32=@OCAMLWIN32@
CAMLDEP=@OCAMLDEP@
CAMLLEX=@OCAMLLEX@
CAMLYACC=@OCAMLYACC@
EXE=@EXE@

USE_GL=@USE_GTKGL@
USE_GLADE=@USE_GLADE@
USE_RSVG=@USE_RSVG@
HAVE_SVGZ=@HAVE_SVGZ@
USE_GNOMECANVAS=@USE_GNOMECANVAS@
USE_GNOMEUI=@USE_GNOMEUI@
USE_PANEL=@USE_PANEL@
USE_GTKSPELL=@USE_GTKSPELL@
USE_GTKSOURCEVIEW=@USE_GTKSOURCEVIEW@
USE_GTKSOURCEVIEW2=@USE_GTKSOURCEVIEW2@
USE_GTKQUARTZ=@USE_GTKQUARTZ@
USE_CC=@USE_CC@
DEBUG=@DEBUG@
CC=@CC@
RANLIB=@RANLIB@
XA=.a
XB=
XE=
XO=.o
XS=@XS@
TOOLCHAIN=unix
LIBDIR=@LIBDIR@
THREADS_LIB=@THREADS_LIB@
HAS_DLL_SUPPORT=@HAS_DLL_SUPPORT@
HAS_NATIVE_DYNLINK=@HAS_NATIVE_DYNLINK@

# if using ocaml >= 3.08, add a -D OCAML_308 (for camlp4)
ODOC_DEF=@ODOC_DEF@

# if using ocaml >= 3.11, add a -D HAS_PRINTEXC_BACKTRACE (for camlp4)
HAS_PRINTEXC_BACKTRACE=@HAS_PRINTEXC_BACKTRACE@

# if using ocaml >= 4.09, add a -D HAS_MODIFY_ARGV (for ocamlc)
HAS_MODIFY_ARGV=@HAS_MODIFY_ARGV@

# where to install the binaries
prefix=@prefix@
exec_prefix=@exec_prefix@
BINDIR=$(DESTDIR)@bindir@

# where to install the man page
MANDIR=$(DESTDIR)@mandir@

LABLGTKDIR=@LIBDIR@/lablgtk2
INSTALLDIR=$(DESTDIR)@LIBDIR@/lablgtk2
DLLDIR=$(DESTDIR)@LIBDIR@/stublibs
LABLGLDIR=@LABLGLDIR@
FLINSTALLDIR=$(DESTDIR)$(FINDLIBDIR)/lablgtk2

FILT = -Wl,--export-dynamic
clean_libs = $(subst -pthread,-ldopt -pthread -ccopt -pthread,$(subst --rpath,-rpath,$(filter-out $(FILT),$(1))))

GTKCFLAGS=@OCAML_CC_EXTRA_FLAGS@ @GTKALL_CFLAGS@ @HAS_MODIFY_ARGV@
GTK_LIBS = @GTK_LIBS@
GTKLIBS:=$(call clean_libs,$(GTK_LIBS))
GTKGL_LIBS = @GTKGL_LIBS@
GTKGLLIBS:=$(call clean_libs,$(GTKGL_LIBS))
GLADE_LIBS = @GLADE_LIBS@
GLADELIBS:=$(call clean_libs,$(GLADE_LIBS))
RSVG_LIBS = @RSVG_LIBS@
RSVGLIBS:=$(call clean_libs,$(RSVG_LIBS))
GNOMECANVAS_LIBS = @GNOMECANVAS_LIBS@
GNOMECANVASLIBS:=$(call clean_libs,$(GNOMECANVAS_LIBS))
GNOMEUI_LIBS = @GNOMEUI_LIBS@
GNOMEUILIBS:=$(call clean_libs,$(GNOMEUI_LIBS))
PANEL_LIBS = @PANEL_LIBS@
PANELLIBS:=$(call clean_libs,$(PANEL_LIBS))
GTKSPELL_LIBS = @GTKSPELL_LIBS@
GTKSPELLLIBS:=$(call clean_libs,$(GTKSPELL_LIBS))
GTKSOURCEVIEW_LIBS = @GTKSOURCEVIEW_LIBS@
GTKSOURCEVIEWLIBS:=$(call clean_libs,$(GTKSOURCEVIEW_LIBS))
GTKSOURCEVIEWCFLAGS= @GTKSOURCEVIEW_CFLAGS@
GTKSOURCEVIEW2_LIBS = @GTKSOURCEVIEW2_LIBS@
GTKSOURCEVIEW2LIBS:=$(call clean_libs,$(GTKSOURCEVIEW2_LIBS))
